package itheima.edu.info.Exdents.Fanxing;

import java.util.Iterator;
import java.util.Set;
import java.util.TreeSet;

public class Fan {
    public static void main(String[] args) {
        Set<String> b=new TreeSet<>();
        b.add("李志宏");
        b.add("吴宣仪");
        b.add("杨超越");
        b.add("卫瑞杰");
        b.add("郭江");
        b.add("李志宏");
        Iterator<String> iterator = b.iterator();
        while (iterator.hasNext()){
            String next = iterator.next();
            System.out.print(next+"说  ");
            System.out.println("李志宏喜欢吴宣仪，吴宣仪也喜欢李志宏");
        }
        for (String s : b) {
            System.out.println(s+"说李志宏我喜欢你");
        }
    }
}


